import Vue from 'vue'
import Router from 'vue-router'
import Login from '../components/Login'

import main from '../components/home/main'
import mainText from '../components/home/mainText'
import orderSee from '../components/orderMange/orderSee'

import requireList from '../components/tixian/requireList'
import userInfo from '../components/user/userInfo'
import history from '../components/system/history'

import realName from '../components/user/realName'
import bankname from '../components/user/bankcard'
import text from '../components/user/text'
import checkEmail from '../components/system/checkEmail'
import backPwd from '../components/system/backPwd'
import revisePwd from '../components/user/revisePwd'

import weiCode from '../components/dealCount/weiCode.vue'
import  zhiCode from '../components/dealCount/zhiCode.vue'
Vue.use(Router)

export default new Router({
	routes: [{
			path: '/',
			name: 'Index',
			component: Login

		},
    {
      path: '/system/backPwd',
      name: 'backPwd',
      component: backPwd
    },
		{
			path: '/login',
			name: 'Login',
			component: Login
		},
		{
			path: '/main',
			name: 'main',
			component: main,
			children: [
				{
					path: '/home/mainText',
					name: 'mainText',
					component: mainText
				},
				{
					path: '/orderMange/orderSee',
					name: 'orderSee',
					component: orderSee
				},
				{
					path: '/tixian/requireList',
					name: 'requireList',
					component: requireList
				},
				{
					path: '/user/userInfo',
					name: 'userInfo',
					component: userInfo
				},
				{
					path: '/system/history',
					name: 'history',
					component: history
				},
				{
					path: '/user/realName',
					name: 'realName',
					component: realName
				},
				{
					path: '/user/bank',
					name: 'bankname',
					component: bankname
				},
				{
					path: '/system/checkEmail',
					name: 'checkEmail',
					component: checkEmail
				},

				{
					path: '/user/text',
					name: 'text',
					component: text
				},
				{
					path: '/user/revisePwd',
					name: 'revisePwd',
					component: revisePwd
				},
        {
          path: '/dealCount/weiCode',
          name: 'weiCode',
          component: weiCode
        },
        {
          path: '/dealCount/zhiCode',
          name: 'zhiCode',
          component: zhiCode
        }

			]
		}
	]
})
